<?php

class Api_Model_GetNhomHangHoa extends Zend_Db_Table_Abstract
{
    protected $_name="dmnhomhhdv";
    protected $_primary="Id";
    
    var $Id, $Ten, $Trangthai;
    
    public function __construct() {
    	$this->_name = Zend_Registry::get('tablePrefix') . $this->_name;
    	    
    	parent::__construct();
    }
    
	
	public function GetAll() {
	    
       return $result = $this->fetchAll()->toArray();
    }
    
    public function GetById()
    {
    	return $this->fetchAll("Id='$this->Id'", "", 1)->toArray();
    }
}

